[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Jean-Pierre Delange
will do). > > Position options: > * relative placement as floats, i.e. \placefigure > * absolute placement on layers, i.e. \setlayer > * relative corrections with \offset (also within floats) > > Hraban > _

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Henning Hraban Ramm
vate mail) how you make your documents (a MWE will do). Position options: * relative placement as floats, i.e. \placefigure * absolute placement on layers, i.e. \setlayer * relative corrections with \offset (also within floats) Hr

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-09 Thread Henning Hraban Ramm
Am 08.09.23 um 19:37 schrieb Henning Hraban Ramm: But it uses its own page size, I don’t understand why. I need the bleed/trim area. If I use \setlayer in the setup, the content gets placed on the next page, i.e. under the text. \structureuservariable{image} in the setup gets the value

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
, because I can set the background, and \externalfigure starts at (0,0). But it uses its own page size, I don’t understand why. I need the bleed/trim area. If I use \setlayer in the setup, the content gets placed on the next page, i.e. under the text. \structureuservariable{image} in the setup

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Wolfgang Schuster
better define start and stop separately? \def\startMyFigure[#1]{ % e.g. use utilities.parsers.settings_to_hash(#1) } \def\stopMyFigure{} Probably I’ll need to catch the content (\externalfigure, might become more) and use it in a \setlayer – so perhaps something like \definebuffer[MyFigure

[NTG-context] how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
\startMyFigure[#1]{ % e.g. use utilities.parsers.settings_to_hash(#1) } \def\stopMyFigure{} Probably I’ll need to catch the content (\externalfigure, might become more) and use it in a \setlayer – so perhaps something like \definebuffer[MyFigure] \define\stopMyFigure{% \setlayer[page]{\getMyFigure

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
, footer=0.75cm, ] \definelayer[test3] %[x=.5\paperwidth, y=.5\paperheight] [x=.5\textwidth, y=.5\textheight] %\setupbackgrounds[page] \setupbackgrounds[text] [background=test3] \starttext \setlayer[test3][location={middle}] \framed[offset=overlay

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
, ] \setuppagenumbering[state=start,alternative=doublesided,location=margin] \useMPlibrary [dum] \starttext %%% Me %%% \showframe [text] [text] \definelayer[test3] \setlayer[test3][] \centerbox{ {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] {\externalfigure[dummy

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Keith McKay via ntg-context
gt; > > > > [backspace=2.5cm, > > > > > > topspace=1cm, > > > > > > height=28cm, > > > > > > width=17cm, > > > > > > header=0cm, > > > > > > footer=0.75cm, > > > > > > ] &

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Alan Braslau via ntg-context
> > [backspace=2.5cm, > > > > topspace=1cm, > > > > height=28cm, > > > > width=17cm, > > > > header=0cm, > > > > footer=0.75cm, > > > > ] > > > > \useMPlibrary [dum] > > > > \start

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Pablo Rodriguez via ntg-context
grounds[page] \setupbackgrounds[text] [background=test3] \starttext \setlayer[test3][location={middle}] \framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm] {\externalfigure[cow][width=15mm]}{} \rotate[rotation=90]{\externalfigure[cow

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Wolfgang Schuster via ntg-context
, height=28cm, width=17cm, header=0cm, footer=0.75cm, ] \useMPlibrary [dum] \starttext \definelayer[test3] \setlayer[test3][x=2cm,y=15cm] {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] {\externalfigure[dummy]}{} \rotate[rotation=90]{\externalfigure[dummy

[NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Keith McKay via ntg-context
, ] \useMPlibrary [dum] \starttext \definelayer[test3] \setlayer[test3][x=2cm,y=15cm] {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] {\externalfigure[dummy]}{} \rotate[rotation=90]{\externalfigure[dummy]}{} {\externalfigure[dummy][]}{} \stopcombination} \flushlayer[test3

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-13 Thread Wolfgang Schuster via ntg-context
[CONTENT] \definemeasure[SpineWidth][2mm + (0.135mm * \noffigurepages/2)] You can try     \expanded{\definemeasure[SpineWidth][...]} That works so far, if I output \measure{SpineWidth} it shows the right size (~42pt). But if I use this measure in \setlayer[width=\measure{SpineWidth}]{...} it’s

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-13 Thread Henning Hraban Ramm via ntg-context
)] That works so far, if I output \measure{SpineWidth} it shows the right size (~42pt). But if I use this measure in \setlayer[width=\measure{SpineWidth}]{...} it’s very small. I guess \noffigurepages is 1 at that point (from another image) and I’d need to expand it first. Am I right

Re: [NTG-context] How do I turn off indentation inside a \framed with align=?

2022-06-02 Thread Gerben Wierda via ntg-context
tions are shown. Abstract elements are expanded so only real meta­model elements are shown. Uses the Mastering ArchiMate 9-colour scheme to assist learning and quick reading.}] \starttext \setupindenting[none] \setupindenting[no] \definelayer[coremodel][width=\textwidth,height=\textheight] \set

Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Stefan Nedeljkovic via ntg-context
> 1. I want the baseline grid to evenly (vertically) divide the text >> > area, but my code produces a smaller height of the first line and an >> > additional space at the bottom. >> >> You did not set footerdistance to zero. So, that takes up some space. &g

Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Rik Kabel via ntg-context
>     2. The number of columns is 21.5, that is the first column is 0.5 units > wide and the rest are 1 unit wide. I believe that columns has to be an integer. Why do you want fractional columns? Columns are useful because you can say: \setlayer[name][line=2,column=3]{}

Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Stefan Nedeljkovic via ntg-context
1 unit wide. > > I believe that columns has to be an integer. Why do you want fractional > columns? Columns are useful because you can say: > > \setlayer[name][line=2,column=3]{} > > for absolute positioning of layers. So, you can always use: > > \setlayer[name][line=2,

Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Aditya Mahajan via ntg-context
st are 1 unit wide. I believe that columns has to be an integer. Why do you want fractional columns? Columns are useful because you can say: \setlayer[name][line=2,column=3]{} for absolute positioning of layers. So, you can always use: \setlayer[name][line=2,column=3,x=0.5\measured{ba

[NTG-context] Pull quote between two column - trial

2022-05-21 Thread Garulfo via ntg-context
[background={color,myOL1}]{\getshapetext}\hfill \FrameColumn[background={color,myOL2}]{\getshapetext}\hfill \FrameColumn{empty}} % and the pull quote \setlayer [test] [hoffset=\backspace+0.3\textwidth-\PQhalfwith+0.2pt, voffset=\dimexpr(\topspace+\headerheight+\headerdistance+\posA

Re: [NTG-context] Crediting copyright on photographs

2022-05-05 Thread Richard Mahoney via ntg-context
I often use \ininner{\rotate[location=fit]{Copyright notice}}, but it’s a hassle to get the placement right, don’t use it within the caption. Using \setlayer is most reliable. Hraban __ _ If your question is of interes

Re: [NTG-context] Crediting copyright on photographs

2022-05-05 Thread Henning Hraban Ramm via ntg-context
already written something they could share? I often use \ininner{\rotate[location=fit]{Copyright notice}}, but it’s a hassle to get the placement right, don’t use it within the caption. Using \setlayer is most reliable. Hraban

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
in {\it Italic} and {\bf bold} letters: \bgroup \it This is what Italic letters look like here. \egroup \bgroup \bf This is what Bold letters look like here. \egroup \stopblockquote \stoptext \definelayer [testlayer] \setupbackgrounds [text] [text] [background=testlayer] %\setupbackground

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
of "if such and such then \setlayer 1,2,3" I think that should be easy. Suppose you have images {chap-cover-1.jpg, chap-cover-2.jpg, ... chap-cover-10.jpg} each of which appear at the ends of their respective chapters, then the following achieves what you want (once you point ConTeXt to

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
in a pics directory, so I'd point \setupexternalfigures to that). I wonder if there is a way to list them so that they get called in order as chapters proceed. A kind of "if such and such then \setlayer 1,2,3" I think that should be easy. Suppose you have images {chap-cover-1.jpg, chap-co

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
led in order as chapters proceed. A kind of "if such > and such then \setlayer 1,2,3" I think that should be easy. Suppose you have images {chap-cover-1.jpg, chap-cover-2.jpg, ... chap-cover-10.jpg} each of which appear at the ends of their respective chapters, then the following ach

Re: [NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
in a pics directory, so I'd point \setupexternalfigures to that). I wonder if there is a way to list them so that they get called in order as chapters proceed. A kind of "if such and such then \setlayer 1,2,3" Julian On 7/3/22 16:38, śrīrāma wrote: On Monday, March 7, 2022 9

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
[x=0mm, y=0mm, width=\paperwidth, height=\paperheight,repeat=yes] \setlayer [mill] {\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \p

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
perwidth,height=\paperheight,repeat=yes] \setlayer[mill]{\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \page[empty] \popbackground} \stopsetups \startsetup

[NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
in bodymatter: \startbodymatter \definelayer[mylayer] % name of the layer [x=0mm, y=0mm, % from upper left corner of paper width=\paperwidth,height=\paperheight] % let the layer cover the full paper \setlayer[mylayer] [hoffset=2.5cm, voffset=3cm] {\externalfigure[Chapter1.jpg][width=.9

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Wolfgang Schuster via ntg-context
not working for me. Here is my MWE: \define[]\logofile{an_image_file.png} % Here defining the variable with the filename to use. \definelayer[stillimage] \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the \logofile macro. \setupbackgrounds[page][background

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Willi Egger via ntg-context
May be \useexternalfigure is your friend instead of your \define[]\logofile{}, which allows you to give a symbolic name of the logo-file. This symbolic name you can use then in the setlayer construct. Willi > On 18 Dec 2021, at 10:52, skyhorse--- via ntg-context > wrote: > >

[NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread skyhorse--- via ntg-context
[]\logofile{an_image_file.png} % Here defining the variable with the filename to use. \definelayer[stillimage] \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the \logofile macro. \setupbackgrounds[page][background=stillimage] \starttext \input knuth \stoptext What's

Re: [NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
ly one or the > > other, but not both. > > > > > > \definefontfamily [mwetest] [sans] [Liberation Sans] > > \setupbodyfont [mwe,ss,12pt] > > \definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in, > > voffset=.125in] >

Re: [NTG-context] font problems

2021-11-26 Thread Hans Hagen via ntg-context
can't get both to print out as Chancery. Only one or the other, but not both. \definefontfamily [mwetest] [sans] [Liberation Sans] \setupbodyfont [mwe,ss,12pt] \definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in, voffset=.125in] \setlayer[mwe

[NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
or the other, but not both. \definefontfamily [mwetest] [sans] [Liberation Sans] \setupbodyfont [mwe,ss,12pt] \definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in, voffset=.125in] \setlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread jbf via ntg-context
}] \definelayer[butterfly]     [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] \setlayer[butterfly]     [hoffset=.99\textwidth, voffset=1cm]     {\externalfigure[bfly.jpg][width=1.5cm]} \setupbackgrounds[page][background=butterfly] The last line adds backgrounds to every page. And without

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread Pablo Rodriguez via ntg-context
> > \setupbackgrounds >  [rightpage] >  [background=butterfly] > > \startchapter[title={Chapter title}] > \definelayer[butterfly] >     [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] > \setlayer[butterfly] >     [hoffset=.99\textwidth, voffset

[NTG-context] repeat layer recto pages

2021-11-08 Thread jbf via ntg-context
something). \startbodymatter \setupbackgrounds  [rightpage]  [background=butterfly] \startchapter[title={Chapter title}] \definelayer[butterfly]     [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] \setlayer[butterfly]     [hoffset=.99\textwidth, voffset=1cm]     {\externalfigure

Re: [NTG-context] Placing pagenumer with coordinates (layers)

2021-09-21 Thread Wolfgang Schuster via ntg-context
,    height=\paperheight,    location={left,top},    x=120mm,y=220mm,    doublesided=yes] \startsetups layer \setlayer[pagenumber][even]{\pagenumber} \stopsetups \setupbackgrounds[page][setups=layer,background={pagenumber}] \starttext ~\page~\page~\page \stoptext And it works, but only for the left

[NTG-context] Placing pagenumer with coordinates (layers)

2021-09-21 Thread Huseyin Özoguz via ntg-context
,    doublesided=yes] \startsetups layer \setlayer[pagenumber][even]{\pagenumber} \stopsetups \setupbackgrounds[page][setups=layer,background={pagenumber}] \starttext ~\page~\page~\page \stoptext And it works, but only for the left (even) page. On the right page I want to place the pagenumber

Re: [NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Hans Hagen via ntg-context
] \setupbackgrounds[text][background={bg},state=start] \starttext \starttransparent[light]% \externalfigure[hacker]% \stoptransparent \setlayer[bg][ hoffset=5mm, voffset=5mm, ]{ \starttransparent[light]% \externalfigure[hacker]% \stoptransparent } \stoptext ''' The layer stuff is not "minimal&qu

[NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Henning Hraban Ramm via ntg-context
\starttransparent[light]% \externalfigure[hacker]% \stoptransparent \setlayer[bg][ hoffset=5mm, voffset=5mm, ]{ \starttransparent[light]% \externalfigure[hacker]% \stoptransparent } \stoptext ''' The layer stuff is not "minimal", but I wanted to check if "multiply&q

[NTG-context] cld, postponing and images

2021-09-06 Thread Henning Hraban Ramm via ntg-context
I think I tangled myself... - I’ve a macro defined in Lua that uses fullpagemakeup and \setlayer to place an image on an empty page. - This macro is called from within a postponing environment. - I check figures.current().status.fullname if the image is found ... - and then read xsize and ysize

Re: [NTG-context] layer disappears when showframe is set

2021-08-26 Thread Wolfgang Schuster via ntg-context
juh via ntg-context schrieb am 26.08.2021 um 14:46: Hi, this sample shows that the image in a layer in header disappears if showframe is set. \setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0] \setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight

[NTG-context] layer disappears when showframe is set

2021-08-26 Thread juh via ntg-context
Hi, this sample shows that the image in a layer in header disappears if showframe is set. \setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0] \setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight]} \setupbackgrounds[header][background=Cow] \showframe

Re: [NTG-context] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Wolfgang Schuster via ntg-context
] \definelayer [MyLogo] [doublesided=yes, width=\paperwidth, height=\paperheight, repeat=yes] \setupbackgrounds [page] [background=MyLogo] \setuppagenumbering [alternative=doublesided] \setlayer [MyLogo] [left] [preset=leftbottom, x=\dimexpr\cutspace-\rightmargindistance

[NTG-context] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Fabrice Couvreur via ntg-context
=\paperwidth, height=\paperheight, repeat=yes] \setupbackgrounds[page][background=MyLogo] \setlayer [MyLogo] [hoffset=\dimexpr\textwidth+\backspace+\rightmargindistance\relax, voffset=\dimexpr\topspace+\textheight+\footerheight\relax] {\externalfigure[dum][width=\rightmarginwidth

Re: [NTG-context] paper dimensions for TEXpage

2021-08-18 Thread Hans Hagen via ntg-context
[page][background={foreground, hi}] \starttext \startTEXpage \framed[frame=off, offset=none] {\setlayer[hi]{\color[red]{hi}} \externalfigure[cow-brown]\framedheight} \stopTEXpage \stoptext In this case, \getfiguredimensions would work, but I don’t know how to deal with a pure text

Re: [NTG-context] paper dimensions for TEXpage

2021-08-17 Thread Pablo Rodriguez via ntg-context
{foreground, hi}] \starttext \startTEXpage \framed[frame=off, offset=none] {\setlayer[hi]{\color[red]{hi}} \externalfigure[cow-brown]\framedheight} \stopTEXpage \stoptext In this case, \getfiguredimensions would work, but I don’t know how to deal with a pure text box. BTW, is there a

Re: [NTG-context] paper dimensions for TEXpage

2021-08-17 Thread Hans Hagen via ntg-context
On 8/17/2021 5:56 AM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \definelayer[hi][x=.5\paperwidth, y=.5\paperheight] \setupbackgrounds[page][background=hi] \starttext \setlayer[hi]{hi} \startTEXpage[offset=10em] \null \stopTEXpage

[NTG-context] paper dimensions for TEXpage

2021-08-16 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definelayer[hi][x=.5\paperwidth, y=.5\paperheight] \setupbackgrounds[page][background=hi] \starttext \setlayer[hi]{hi} \startTEXpage[offset=10em] \null \stopTEXpage \stoptext I don’t get the layer in the TEXpage. How could I get

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-10 Thread Michal Vlasák via ntg-context
, may cause surprising interactions when around normal typsetting content. Putting the whatsit insertion in a page background is a way to keep it away. "back-swf.mkiv" suggests: \setupbackgrounds[page][background=resources] \setlayer[resources]{\placerenderingwindow[foo][foo]}

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-31 Thread Pablo Rodriguez via ntg-context
\setupbackgrounds[page][background=resources] > \setlayer[resources]{\placerenderingwindow[audiowindow][myaudiorendering]} > > \goto{PLAY SOUND}[StartRendering{myaudiorendering}] > > This is basically the example from "/back-swf.mkiv". Works in Acrobat. > And one can use eit

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-30 Thread Michal Vlasák via ntg-context
th=0sp, height=0sp] \definelayer[resources] \setupbackgrounds[page][background=resources] \setlayer[resources]{\placerenderingwindow[audiowindow][myaudiorendering]} \goto{PLAY SOUND}[StartRendering{myaudiorendering}] This is basically the example from "/back-swf.mkiv". W

Re: [NTG-context] reusableMPgraphic

2021-07-15 Thread Jairo A. del Rio
itsquare xyscaled (1mm,1mm) withcolor blue ; > > \stopreusableMPgraphic > > > > \definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight] > > \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}} > > > > \setupbackgrounds [page][b

Re: [NTG-context] reusableMPgraphic

2021-07-12 Thread Wolfgang Schuster
; \stopreusableMPgraphic \definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight] \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}} \setupbackgrounds [page][background=foldingmarkslayer] \starttext Test \stoptext The error I get: tex error on line 6 in file ./test.tex: Use

[NTG-context] reusableMPgraphic

2021-07-12 Thread Thomas A. Schmitz
=\paperwidth,height=\paperheight] \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}} \setupbackgrounds [page][background=foldingmarkslayer] \starttext Test \stoptext The error I get: tex error on line 6 in file ./test.tex: Use of \meta_usempgraphic_nop doesn't match its

Re: [NTG-context] Double-sided layer

2021-05-06 Thread Wolfgang Schuster
Huseyin Özoguz schrieb am 06.05.2021 um 12:48: Hello context-community, I have an image as a layer and want it to place on every page of a book with some offset. My minexample: \setlayer[mybg]     [hoffset=2cm, voffset=0.2cm, doublesided=yes] {\framed[frame=off, width=2cm, height=1cm

[NTG-context] Double-sided layer

2021-05-06 Thread Huseyin Özoguz
Hello context-community, I have an image as a layer and want it to place on every page of a book with some offset. My minexample: \setlayer[mybg]     [hoffset=2cm, voffset=0.2cm, doublesided=yes] {\framed[frame=off, width=2cm, height=1cm]{\externalfigure[bilder_bearbeitet_png/32.png][width

Re: [NTG-context] layers x 2

2021-04-27 Thread jbf
x=0mm, y=0mm,  % from upper left corner of paper   width=\paperwidth, height=.5\paperheight] % let the layer cover the full paper \setlayer[blessings]    % name of the layer [hoffset=.09\textwidth, voffset=1.7cm]  % placement (from upper

Re: [NTG-context] layers x 2

2021-04-27 Thread Wolfgang Schuster
cond is bottom right. >> >> \definelayer[blessings] % name of the layer >> [x=0mm, y=0mm, % from upper left corner of paper >> width=\paperwidth, height=.5\paperheight] % let the layer cover >> the full paper >> \setlayer[blessings]

Re: [NTG-context] layers x 2

2021-04-27 Thread jbf
paper \setlayer[blessings]    % name of the layer [hoffset=.09\textwidth, voffset=1.7cm]  % placement (from upper left corner of the layer) {\externalfigure[bless.eps][width=3cm]}  % the actual contents of the layer \setupbackgrounds[page][background=ble

Re: [NTG-context] layers x 2

2021-04-27 Thread Wolfgang Schuster
y=0mm, % from upper left corner of paper > width=\paperwidth, height=.5\paperheight] % let the layer cover > the full paper > \setlayer[blessings]% name of the layer > [hoffset=.09\textwidth, voffset=1.7cm] % placement (from upper > left corner of the layer) > {\

[NTG-context] layers x 2

2021-04-27 Thread jbf
the layer cover the full paper \setlayer[blessings]    % name of the layer     [hoffset=.09\textwidth, voffset=1.7cm]  % placement (from upper left corner of the layer)     {\externalfigure[bless.eps][width=3cm]}  % the actual contents of the layer \setupbackgrounds[page][background=blessings

Re: [NTG-context] issue with doublesided layer

2021-01-19 Thread Hans Hagen
On 1/19/2021 5:46 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \definelayer[layer] [doublesided=yes] \setlayer[layer] {layer} \setupbackgrounds[text] [background={layer}] \starttext \null \stoptext Simply defining a doublesided layer

[NTG-context] issue with doublesided layer

2021-01-19 Thread Pablo Rodriguez
Dear list, I have the following sample: \definelayer[layer] [doublesided=yes] \setlayer[layer] {layer} \setupbackgrounds[text] [background={layer}] \starttext \null \stoptext Simply defining a doublesided layer breaks compilation in LMTX. It works fine with MkIV. I’m

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Hans Hagen
background :=  unitsquare xscaled dimA yscaled dimB ;   fill pathbackground    withshademethod "linear"    withshadedirection(0,1)    withshadecolors (red,blue); \stopuseMPgraphic %-- \definelayer[MyBackgroundLayer] \setlayer[MyBackgroundLayer]{\

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Otared Kavian
==== > %== > > \starttext > > %-- > > \startuseMPgraphic{MyBackgroundGraphic} > path pathbackground ; > numeric dim

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Garulfo
mA yscaled dimB ; fill pathbackground withshademethod "linear" withshadedirection(0,1) withshadecolors (red,blue); \stopuseMPgraphic %-- \definelayer[MyBackgroundLayer] \setlayer[MyBackgroundLayer]{\useMPgraphic{MyBackgroundGraphic}} \s

Re: [NTG-context] Bug (?) using \externalfigure with layers and backgrounds

2020-12-03 Thread Jairo A. del Rio
> > \definelayer[mybg] > > [ > > repeat=yes, > > x=0mm, y=0mm, > > width=\paperwidth, height=\paperheight, > > ] > > > \setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]} > > \setupbackgrounds[page][background=mybg,state=re

Re: [NTG-context] Bug (?) using \externalfigure with layers and backgrounds

2020-12-03 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 03.12.2020 um 18:14: Hi everyone. The following \setuppagenumbering[state=stop] \definelayer[mybg] [ repeat=yes, x=0mm, y=0mm, width=\paperwidth, height=\paperheight, ] \setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]} \setupbackgrounds

[NTG-context] Bug (?) using \externalfigure with layers and backgrounds

2020-12-03 Thread Jairo A. del Rio
Hi everyone. The following \setuppagenumbering[state=stop] \definelayer[mybg] [ repeat=yes, x=0mm, y=0mm, width=\paperwidth, height=\paperheight, ] \setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]} \setupbackgrounds[page][background=mybg,state=repeat] \setupindenting

Re: [NTG-context] framedtext is (still) broken in LMTX

2020-11-30 Thread Rik Kabel
default width than *\framed*. Perhaps I missed it.) New overwrought example: \definelayer  [HRule] [x=0mm,y=0pt,width=\textwidth,height=\textheight] \setlayer [HRule]   [hoffset=0pt,voffset=10em] {\blackrule[color=green,height=1pt,width=10cm

Re: [NTG-context] error running wiki example with labels

2020-06-26 Thread Jan-Erik Hägglöf
state=stop] \definelayer[BG][ x=0mm,y=0mm, width=\LWidth,height=\LHeight, state=repeat] \setupbackgrounds[page][background=BG,] \setlayerframed[BG][ frame=on, framecolor=yellow, width=\LWidth,height=\LHeight, align=flushleft, ]{\strut} \setlayer[BG][ preset=rightbottom, hoffse

[NTG-context] error running wiki example with labels

2020-06-24 Thread Jan-Erik Hägglöf
s > defining > unable to define 'IBMPlexSans-regular' as 'ibmplex-14pt-ss-tf-0--0' lua error > lua error on line 70 in file ./labels3.tex: function call [801]: ...-64/tex/texmf-context/tex/context/base/mkiv/node-syn.lua:435: attempt to index a nil value (upvalue

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Rudolf Bahr
> \setupbackgrounds[page][background=pgnumber] > \starttext > \placelist[section][alternative=d] > \dorecurse{16}{\section{Section}} > \pagenumber/\lastpagenumber > \setlayer[pgnumber] > {\comment{\pagenumber}} > \stoptext > > Could anyone confirm the iss

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Wolfgang Schuster
] \starttext \placelist[section][alternative=d] \dorecurse{16}{\section{Section}} \pagenumber/\lastpagenumber \setlayer[pgnumber] {\comment{\pagenumber}} \stoptext Could anyone confirm the issue? \pagenumber is only reliable headers/footer texts or page backgrounds

[NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Pablo Rodriguez
] \dorecurse{16}{\section{Section}} \pagenumber/\lastpagenumber \setlayer[pgnumber] {\comment{\pagenumber}} \stoptext Could anyone confirm the issue? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Henning Hraban Ramm
empty, pagestate=start, ] \def\doublepagefig{\dodoubleempty\doDoublePagefig} \def\doDoublePagefig[#1][#2]#3#4{ \startfullpagemakeup \setlayer[bgpicleft]{\textreference[#1]{}% \clip[ hoffset=0mm, voffset=0mm,

Re: [NTG-context] image across 2 page spread

2020-04-29 Thread Thangalin
Would something like this work? \setupbackgrounds[page][ background={BookIllustrationLayer}, ] \definelayer[BookIllustrationLayer][ width=\paperwidth, height=.5\paperheight, y=.5\paperheight, position=no, repeat=no, ] \setlayer[BookIllustrationLayer]{% \clip[x=\doifelseoddpage

[NTG-context] Unexpected result when using PaperHeight and MetaFUun

2020-04-19 Thread Keith McKay
=\paperheight] % let the layer cover the full paper \startuniqueMPgraphic{blueShade} draw lmt_shade [ path = fullsquare xyscaled(PaperWidth,PaperHeight), direction = "up", alternative = "linear", colors = { "red", "blue" }, ]; \stopuniqueMPgraphic \s

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-25 Thread Rudolf Bahr
On Tue, Mar 24, 2020 at 07:29:26PM +0100, Wolfgang Schuster wrote: > > When you need the height for the layer offset you can use \dowithnextbox > because it hides \setbox etc. > > \definelayer[TextBox] > > \showframe[text][text] > > \starttext > > \dowithnextb

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Wolfgang Schuster
r offset you can use \dowithnextbox because it hides \setbox etc. \definelayer[TextBox] \showframe[text][text] \starttext \dowithnextbox {\setlayer [TextBox] [x=\the\dimexpr(\textwidth -\nextboxwd)/3\relax, y=\the\dimexpr(\textheight-\nextboxht)/3\relax] {\flushnextbox}} \hbox

Re: [NTG-context] Repeat backgrounds on slides

2020-02-13 Thread Wolfgang Schuster
On Thu, 13 Feb 2020 09:19:10 +0100 juh wrote: > Hi all, > > I am a little bit confused as I never had this problem, although I often use > backgrounds and layers. > > \definelayer[bg:hs2020-mond] > [x=0, y=0, width=\paperwidth, height=\paperheight] > > \setlayer[

[NTG-context] Repeat backgrounds on slides

2020-02-13 Thread juh
Hi all, I am a little bit confused as I never had this problem, although I often use backgrounds and layers. \definelayer[bg:hs2020-mond] [x=0, y=0, width=\paperwidth, height=\paperheight] \setlayer[bg:hs2020-mond] [x=0mm, y=0mm] {\externalfigure[background.jpg][height=\paperwidth]} Ususally I

Re: [NTG-context] columnset issues

2020-01-27 Thread Henning Hraban Ramm
), even though all have state=stop, and never show up again where I set state=start. I wanted to use it like \define[2]\Anzeige{% \setupcolumnsetareatext[ad#1][{\externalfigure[#2][width=\overlaywidth]}] \setupcolumnsetarea[ad#1][state=start] } I also tried to just reserve the space with c

[NTG-context] placing layers

2020-01-24 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupexternalfigures[location=default] \starttext \definelayer[abc][hoffset=1cm, voffset=5cm] \setlayer[abc]{\externalfigure[cow.pdf][frame=on]} \definelayer[xyz][hoffset=12cm, voffset=5cm] \setlayer[xyz]{\externalfigure

Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
, as well as using \startuseMPgraphic for direct compilation from ConTeXt. Many thanks for all the help. >>> SNIPPET <<< \startbuffer[tblcard] \strut \definelayer[tblplacecard] \setlayer[tblplacecard][x=-1em,y=1em]{% \externalfigure[figures/apollonius/apo

[NTG-context] Layer presets / size of type area

2019-12-19 Thread Henning Hraban Ramm
, topspace=6mm, header=8mm, footer=6mm, ] \showframe \definelayer[TA] [x=16mm, y=14mm, width=\makeupwidth, height=\makeupheight] \setupbackgrounds[page][background=TA] \def\Square{\framed[width=1cm,height=1cm]{S}} \starttext \strut \setlayer[TA

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
- MWE - \setuppapersize[A4,landscape] \setupexternalfigures[location={default}] \starttext \definelayer[LAY]% \setlayer[LAY][x=0pt,y=-8pt]% {% \vbox {% \hsize=.35\textwidth \externalfigure[cow][width=\hsize]% \vskip\lineheight \input tufte

Re: [NTG-context] Textbackground inside Layer?

2019-12-09 Thread Wolfgang Schuster
Jon Wong schrieb am 06.12.2019 um 04:13: \setupwhitespace[line] % A line's spacing between paragraphs. \starttext \definetextbackground[InfoText][ location=paragraph, frame=on] You can't use "location=paragraph" because the argument of the \setlayer command is a simple hori

[NTG-context] Textbackground inside Layer?

2019-12-05 Thread Jon Wong
\setupwhitespace[line] % A line's spacing between paragraphs. \starttext \definetextbackground[InfoText][ location=paragraph, frame=on] \definelayer[testlayer] \setlayer[testlayer][x=1cm,y=3cm]{% \startInfoText \stopInfoText } \flushlayer[testlayer] \stoptext Doesn’t work. Only works

Re: [NTG-context] Captions with background

2019-08-04 Thread Hans Hagen
://wiki.contextgarden.net/Drop_shadows). Now, the background should just enclose the text, not more. Since I don’t know how long the caption will be (I use the whole setup in a macro), I need a \vbox within \setlayer, but that always uses the full \textwidth, regardless of width settings of \framed

[NTG-context] Captions with background

2019-08-03 Thread Henning Hraban Ramm
, the background should just enclose the text, not more. Since I don’t know how long the caption will be (I use the whole setup in a macro), I need a \vbox within \setlayer, but that always uses the full \textwidth, regardless of width settings of \framed. If the caption is short, the box should

[NTG-context] background problem with layers

2019-07-22 Thread Peter Rolf
=darkgray, background=color, backgroundoffset=1mm, backgroundcorner=round, backgroundradius=1mm, frame=on, framecolor=black, ] \definelayer[foo][width=\the\paperwidth, height=\the\paperheight, state=repeat] \setlayer[foo][x=70mm, y=40mm] {\framedclass{no style here

Re: [NTG-context] thumb index: \setlayer on every odd/even page?

2019-05-13 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 13.05.2019 um 23:17: Hai, how must I setup layers that get repeated on every even/odd page? Or should I use \doifoddpageelse with \setlayer? Or do you have a different suggestion for thumb index “boxes”? https://wiki.contextgarden.net/Thumb_index You can also

[NTG-context] thumb index: \setlayer on every odd/even page?

2019-05-13 Thread Henning Hraban Ramm
Hai, how must I setup layers that get repeated on every even/odd page? Or should I use \doifoddpageelse with \setlayer? Or do you have a different suggestion for thumb index “boxes”? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key

Re: [NTG-context] Layer failure with LMTX

2019-04-08 Thread Hans Hagen
=\topspace, width=\pagewidth, height=\pageheight, ] \startsetups [setupPage] \setlayer[pageNumber] {\hskip\leftmargindistance \inframed[frame=off,leftframe=on,loffset=1em]{\userpage

  1   2   3   4   5   6   >